package com.njbdqn.qiy_shop.shopservices;

import java.util.List;

import com.njbdqn.qiy_shop.shopdao.GouWuCheDAO;
import com.njbdqn.qiy_shop.shopentity.Commodity;
import com.njbdqn.qiy_shop.shopentity.ShopPic;
import com.njbdqn.qiy_shop.shopvo.GouWuCheVO;

public class GouService {
	private GouWuCheDAO gdao;
	
	public GouService(){
		gdao = new GouWuCheDAO();
	}
	
	
	

	public ShopPic findbycommodityid(int commodityid){
		return gdao.findbycommodityid(commodityid);
	}
	
	public Commodity findbyshopid(int commodityid){
		return gdao.findById(commodityid);
	}
	public List<Commodity> findBy(int commodityid){
		return gdao.findby(commodityid);
	}

}
